package com.ruoyi.common.constant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class PartyConstants {


  public static final String NORMAL_PARTY_MAN = "普通xx";

  public static final String PROD = "prod";

  /** 数据状态 审批通过（正常数据） */
  public static final String DATA_STATUS_FLOW_NORMAL = "0";

  /** 数据状态 审批拒绝（失败数据） */
  public static final String DATA_STATUS_FLOW_REFUSE = "1";

  /** 数据状态 草稿 */
  public static final String DATA_STATUS_FLOW_BEFORE = "2";

  /** 数据状态 审批中 */
  public static final String DATA_STATUS_FLOW_ING = "3";

  /** 逻辑删除状态标识 */
  public static final String DELETE_STATUS = "9";

  /** 空格（主要用于sql拼接） */
  public static final String SPACE_BLANK = " ";

  /** 引号（主要用于sql拼接） */
  public static final String QUOTES = "'";

  /** AND（主要用于sql拼接） */
  public static final String AND = "AND";

  /** %号（主要用于sql拼接） */
  public static final String PERCENT_SIGN = "%";

  /** LIKE */
  public static final String LIKE = "LIKE";

  /** BRANCH_LEVEL_COL */
  public static final String BRANCH_LEVEL_COL = "ct_branch_level";

  public static final String CT_NAME = "ct_name";

  /** retrieve condition 的一些常量 */
  /** input 文本框 */
  public static final String TB = "tb";
  /** 时间选择 */
  public static final String CD = "cd";
  /** 下拉选择树 */
  public static final String POPW = "popw";
  /** 下拉选择树 */
  public static final String DDLB = "ddlb";

  public static final String EL_INPUT = "el-input";
  public static final String EL_DATE_PICKER = "el-date-picker";
  public static final String MIS_SELECT_TREE = "mis-select-tree";

  /** 时间选择用于区分起止时间的后缀 */
  public static final String DATE_START_SUFFIX = "_date_start";

  public static final String START_SUFFIX = "_start";

  public static final String END_SUFFIX = "_end";

  public static final String DATE_END_SUFFIX = "_date_end";

  public static final String GREATER_OR_EQUAL = ">=";

  public static final String LESS_OR_EQUAL = "<=";

  public static final String EQUAL_SIGN = "=";
  public static final String LOWER_TRUE = "true";

  public static final String INCLUDE_FLAG = "includeFlag";

  /** 党组织常量 */
  public static final Long TOP_DEPT_ID = 0L;

  /** 单位情况 */
  /** 法人单位 */
  public static final String CATEGORY_COMPANY_LEGAL_ENTITY = "DWQK1";
  /** 与上级党组织同一法人单位 */
  public static final String CATEGORY_COMPANY_FOLLOW = "DWQK21";
  /** 与上级党组织不同一法人单位 */
  public static final String CATEGORY_COMPANY_NOT_FOLLOW = "DWQK22";
  /** 联合 */
  public static final String CATEGORY_COMPANY_UNION_UNIT = "DWQK3";

  public static final HashMap<String, String> CATEGORY_COMPANY_MAP =
      new HashMap() {
        {
          put("DWQK1", "法人代表(独立单位)");
          put("DWQK21", "与上级党组织同一法人单位");
          put("DWQK22", "与上级党组织不同一法人单位");
          put("DWQK3", "联合支部");
        }
      };

  /** 党组织类型 */
  /** 党委 */
  public static final String CATEGORY_COMMITTEE = "ZZLB611";
  /** 党总支 */
  public static final String CATEGORY_GENERAL_BRANCH = "ZZLB621";
  /** 党支部 */
  public static final String CATEGORY_BRANCH = "ZZLB631";
  /** 联合支部 */
  public static final String CATEGORY_JOINT_BRANCH = "ZZLB632";

  public static final List<String> CATEGORY_LIST =
      new ArrayList<String>() {
        {
          add(CATEGORY_COMMITTEE);
          add(CATEGORY_GENERAL_BRANCH);
          add(CATEGORY_BRANCH);
          add(CATEGORY_JOINT_BRANCH);
        }
      };

  /** 00 党委、支部 01 党委 02 支部 03 其他 */
  public static final String COMMITTEE_AND_GENERAL_PARTY = "00";

  public static final String COMMITTEE_PARTY = "01";
  public static final String GENERAL_PARTY = "02";
  public static final String OTHER_PARTY = "03";

  /** 组织属性为 一肩挑 */
  public static final String SHOULDER_TO = "ZZATTR03";

  public static final String SIGN_AGREE = "01";

  public static final String SIGN_END = "E";

  /** 党建进章程 */
  public static final String PARTY_TO_UNIT = "ZZATTR01";

  /**
   * xx集团编码
   */
  public static final String ZHE_JIANG_ENERGY_ENTERPRISE_CODE = "040";

  /**
   * xx企业编码
   */
  public static final String CHINA_TOBACCO_ENTERPRISE_CODE = "038";

  /**
   * xx单点登录
   */
  public static final String CHINA_TOBACCO_SSO_REDIS_KEY = "sys_config:system.party.chinaTobaccoSSO";

  /**
   * 属地化管理员角色id
   */
  public static final Long LOCALIZATION_ROLE_ID = 207L;

  public static final String chinaTobaccoERPRedisKey = "sys_config:system.party.chinaTobaccoERP";
}
